package Machine;
import Monitoring_Machine.*;


public class Machine {

	public String name;
	
	public boolean Connecte;
	
	public int CpuUsed;
	public int seuil_cpu;
	public boolean SeuilCpuDepasse;
	
	public int MemoryUsed;
	public int seuil_mem;
	public boolean SeuilMemoryDepasse;
	
	public String OsUsed;
	
	public long HardDiskFree;//en Mo
	public boolean SeuilDisqueDepasse;
	
	public Diagnostic diag;
	
	
	public Machine(String name) {
	
		this.name = name;
		this.Connecte = false;
		this.CpuUsed = 0;
		this.seuil_cpu=50;
		
		
		this.MemoryUsed  = 0;
		this.seuil_mem=70;
		this.OsUsed = "Linux";
		this.HardDiskFree = 0;
		
	}
	
	public int getSeuil_cpu() {
		return seuil_cpu;
	}

	public void setSeuil_cpu(int seuilCpu) {
		seuil_cpu = seuilCpu;
	}

	public int getSeuil_mem() {
		return seuil_mem;
	}

	public void setSeuil_mem(int seuilMem) {
		seuil_mem = seuilMem;
	}

	public String getName() {
		return this.name;
	}
	
	public boolean getConnecte() {	
		return this.Connecte;
	}
	
	public int getCpuUsed() {
		return this.CpuUsed;
	}
	
	
	public int getMemoryUsed() {
		return this.MemoryUsed;
	}
	
	public String getOsUsed() {
		return this.OsUsed;
	}
	
	public long getHardDiskFree() {
		return this.HardDiskFree;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public void setConnecte(boolean Connec) {	
		this.Connecte = Connec;
	}
	
	public void setCpuUsed(int tauxCpu) {
		this.CpuUsed = tauxCpu;
	}
	
	
	public void setMemoryUsed(int memoire) {
		this.MemoryUsed = memoire;
	}
	
	public void getOsUsed(String Os) {
		this.OsUsed = Os;
	}
	
	public void getHardDiskFree(long espaceLibre) {
		this.HardDiskFree = espaceLibre;
	}
	
	
}
